package com.gutsyzhan.dynamicdatasourcespringbootstarter.properties;

import com.gutsyzhan.dynamicdatasourcespringbootstarter.constants.DataSourceConstant;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedHashMap;
import java.util.Map;

@ConfigurationProperties(prefix = DataSourceConstant.PREFIX)
public class DynamicDataSourceProperty {
    /**
     * 默认的数据源名称
     */
    private String primary = DataSourceConstant.PRIMARY;
    /**
     * 所有的数据源
     */
    private Map<String, DataSourceProperty> dataSources = new LinkedHashMap<>();
}
